import * as React from 'react'
import './index.less'
interface Props {
  title: string ,
  history:any
}
class NavHeader extends React.Component<Props> {
  
  componentDidMount() {
   
  }
  render() {  
   
    return ( 
      <div className="nav-header">
        <i className="iconfont icon-fanhui" onClick={()=>this.props.history.goBack()}></i>
        {this.props.title}
      </div>
     );
  }
}
 
export default NavHeader